﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateBlog.ascx.cs" Inherits="SocialFront.Web.usercontrols.Blog.CreateBlog" %>

<asp:MultiView ID="PageViewState" runat="server" ActiveViewIndex="0">
    <asp:View ID="View1" runat="server">
        <asp:Panel ID="UserBlog" runat="server" DefaultButton="bCreateBlog">
            <asp:ValidationSummary ID="PageValidationSummary" runat="server" />
            
            <h2>New blog</h2>
            
            <div class="event_form">
                <div class="form-row">
                    <div class="label">
                        <label for="blogTitle">Title:</label>
                        <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server"
                            ErrorMessage="Please enter a title!" ControlToValidate="blogTitle">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="form-right">
                        <asp:TextBox ID="blogTitle" runat="server"></asp:TextBox>
                    </div>
                </div>
                
                <div class="form-row">
                    <div class="label">
                        <label for="blogContent">Content:</label>
                    </div>
                    <div class="form-right">
                        <asp:TextBox ID="blogContent" runat="server" TextMode="MultiLine" style="width:400px;height:300px;"></asp:TextBox>
                    </div>
                </div>
           
                <div class="form-row">
                    <div class="label">
                        <label for="blogTags">Tags:</label>
                    </div>
                    <div class="form-right">
                        <asp:TextBox ID="blogTags" runat="server"></asp:TextBox>
                    </div>
                </div>
           
                <asp:Button ID="bCreateBlog" runat="server" Text="Post Blog" 
                    CssClass="submitButton" onclick="bCreateBlog_Click" />
            </div>
        </asp:Panel>
    </asp:View>
    <asp:View ID="View2" runat="server">
        Blog Created!
    </asp:View>
</asp:MultiView>